package com.bdqn.service;

import com.bdqn.entity.Dish;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bdqn.param.response.DishDto;
import com.bdqn.param.response.Page;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 菜品管理 服务类
 * </p>
 *
 * @author hunter
 * @since 2022-06-11
 */

public interface DishService extends IService<Dish> {

    Page<DishDto> pageInfo(Integer page, Integer pageSize, String name);

    /**
     * 通过菜品id 返回菜品的详细信息
     * @param id
     * @return
     */
    DishDto dishDto(Long id);

    List<DishDto> getDishByCategory(Long categoryId);
}
